package edu.ustb.linehash;

/**
 * @author ShiZhe
 * @create 2020-10-08 14:04
 */
public class LineHashApplication {
    public static void main(String args[]){
        LineHash hash = new LineHash(3);
        hash.addKeyValue(4, "this");
        hash.addKeyValue(8, "is");
        hash.addKeyValue(12, "a");
        hash.addKeyValue(16, "test");
        hash.addKeyValue(20, "!!!!");
        hash.addKeyValue(24, "~~~");
        hash.addKeyValue(28, "dsd");
        hash.addKeyValue(32, "gg22");
        for(int i = 4; i <= 24;)
        {
            System.out.println(hash.getKeyValue(i));
            i = i + 4;
        }
    }
}